<?php
namespace app\admin\controller;

/**
 * 后天Block类页面展示
 * Class BlockController
 * @package app\admin\controller
 */
class BlockController extends CommonController
{
    //首页设置
    public function index()
    {
        //获取父级类的内容
        $data = $this->common_block('index');
        if (request()->isPost()) {
            if ($data === false) {
                $this->error('修改失败，请稍后重试');
            }else {
                $this->success('修改成功');
            }
        }
        $this->assign('data', $data);
        return $this->fetch();
    }
}
